// 1、导入axios以及拦截器
import service from './request'

// 2、定义登录函数接口


// 卖家用户登录
export const sellerLogin = (data) => {
    return service({
        url: '/user/seller/userLogin',
        method: 'post',
        data
    })
};


// 卖家用户修改密码
export const sellerResetPassword = (data) => {
    return service({
        url: '/user/seller/userResetPassword',
        method: 'post',
        data
    })
};


// 卖家注册
export const sellerAddUser = (data) => {
    return service({
        url: '/user/seller/addUser',
        method: 'post',
        data
    })
};

// 卖家发送验证码
export const sellerSendCode = (data) => {
    return service({
        url: '/user/seller/sendCode',
        method: 'post',
        data
    })
};

// 获取商家信息接口
export const getSellerInfo = (data) => {
    return service({
        url: '/user/seller/getSellerInfo',
        method: 'post',
        data
    })
};

// 修改商家信息接口
export const setSellerInfo = (data) => {
    return service({
        url: '/user/seller/setSellerInfo',
        method: 'post',
        data
    })
};